<!-- This view contains all medicine units -->

<script type="text/javascript">
{literal}
    $(document).ready(function() {
        decorateMedUnitList();
    }); 
{/literal}
</script>

<div id="medicine_unit_container" style="margin-top: 5px">
    {include file="main/big_element_paging.html"}
    <table id="medicine_unit_list" cellspacing="0" cellpadding="0" class="grid" width="300px">
        <thead>
            <tr>
                <th class="first">{translate}Order number{/translate}</th>
                <th>{translate}Medicine unit{/translate}</th>                
            </tr>
        </thead>
        <tbody>
        {php}$count = 1; $this->assign('count', $count);{/php}
        {foreach from=$medUnitList item=unit}
            <tr>
                <td>{$count}</td>
                <td>{$unit.unit_name}</td>
            </tr>
            {php}$count++; $this->assign('count', $count);{/php}
        {/foreach}
        </tbody>
    </table>
    
    {php}$count--; $this->assign('count', $count);{/php}
    <table class="grid" cellpadding="0" cellspacing="0" width="300px">
        <tr><td colspan="2" class="first last">{translate p1=$count}Total: %s{/translate}</td></tr>
    </table>
</div>